package com.suse.lhw.hms.foodserver.service;

import com.suse.lhw.hms.foodserver.domin.FPackage;
import com.suse.lhw.hms.foodserver.domin.FPackageToFFoodmodel;
import com.suse.lhw.hms.foodserver.pojo.input_POJO.eatAPackage;
import com.suse.lhw.hms.foodserver.pojo.output_POJO.PackageAndAllModels;

import java.util.List;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.foodserver.service
 * @ClassName: FPackageService
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/18 19:30
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/18 19:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public interface FPackageService {


    int deleteByPrimaryKey(Integer id);

    int insert(FPackage record);

    int insertSelective(FPackage record);

    FPackage selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FPackage record);

    int updateByPrimaryKey(FPackage record);

    int addADefaultPackage(FPackage fPackage, List<FPackageToFFoodmodel> list);

    int deleteADefaultPackageByPrimaryKey(int id);

    List<FPackage> selectDefualtPackages();

    int insertAnUnUploadPackage(FPackage fPackage, List<Integer> fmIds);

    int deleteAnUnUplodPackage(int pakcageId);

    int insertPTMs(int packaeid, List<eatAPackage> ptmList, String userId, int status);

    List<PackageAndAllModels> selectAllDefault(int type);
}
